﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SkupinaDodajClane.aspx.cs"
    Inherits="Sio.Mdm.Web.Organizacija.SkupinaDodajClane" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
    <title>SIO - MDM :: Organizacija : Dodajanje članov v skupino </title>
</head>
<body>
    <form id="form2" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport ID="Viewport1" runat="server" Layout="Fit">
        <Content>
            <sio:GridPanel ID="GridSkupinaSeznam" runat="server" StripeRows="true" TrackMouseOver="true"
                Width="700">
                <Store>
                    <ext:Store ID="StoreSkupinaSeznam" runat="server">
                        <Reader>
                            <ext:JsonReader IDProperty="UID">
                                <Fields>
                                    <ext:RecordField Name="UID" Type="String" />
                                    <ext:RecordField Name="TipObjektaId" Type="Int" />
                                    <ext:RecordField Name="KljucId" Type="Int" />
                                    <ext:RecordField Name="TipObjektaNaziv" Type="String" />
                                    <ext:RecordField Name="Opis" Type="String" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                    </ext:Store>
                </Store>
                <ColumnModel ID="ColumnModel2" runat="server">
                    <Columns>
                        <ext:RowNumbererColumn />
                        <ext:Column ColumnID="UID" Hidden="true" Hideable="false" DataIndex="UID">
                        </ext:Column>
                        <ext:Column ColumnID="TipObjektaId" Hidden="true" Hideable="false" DataIndex="SkuTipObjektaIdpinaID">
                        </ext:Column>
                        <ext:Column ColumnID="KljucId" Hidden="true" Hideable="false" DataIndex="KljucId">
                        </ext:Column>
                        <ext:Column Header="TipObjektaNaziv" DataIndex="TipObjektaNaziv" Width="150">
                        </ext:Column>
                        <ext:Column ColumnID="Opis" Header="Opis" DataIndex="Opis" Width="300">
                        </ext:Column>
                    </Columns>
                </ColumnModel>
                <SelectionModel>
                    <ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" />
                </SelectionModel>
                <TopBar>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Items>
                            <sio:Button runat="server" ID="Dodaj" Text="Dodaj" Icon="Add">
                                <DirectEvents>
                                    <Click OnEvent="DodajClane">
                                        <ExtraParams>
                                            <ext:Parameter Name="selected" Mode="Raw" Value="Ext.encode(#{GridSkupinaSeznam}.getRowsValues({selectedOnly:true}))" />
                                        </ExtraParams>
                                    </Click>
                                </DirectEvents>
                            
                            </sio:Button>
                        </Items>
                    </ext:Toolbar>
                </TopBar>
            </sio:GridPanel>
        </Content>
    </ext:Viewport>
    </form>
</body>
</html>